package com.xingkeduo.feign;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.xingkeduo.util.ResponseUtils;

@EnableDiscoveryClient
@EnableFeignClients
@FeignClient(value = "business-operation")
public interface HairstyleFeignService {

	// 查询发型列表 主要返回主键id和服务名称
	@RequestMapping("/api/op/hairstyle/lists/{urlParam}")
	ResponseUtils<Object> doHairGet(
			@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);

	// 查询店铺信息 主要返回主键id,店铺名称
	// 查询店铺信息
	@RequestMapping("/api/op/shops/lists/{urlParam}")
	String doStoreGet(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);

    // 店铺列表   根据id查询部分门店
    @GetMapping("/api/op/shops/getShopsList")
    String shoplists(@RequestParam("ids") String ids,@RequestParam(value = "status") Integer status,@RequestParam(value = "typeList") String typeList);
    //查询店铺信息
    @RequestMapping("/api/op/shops/getShopsDetales")
    String getShopsDetales(@RequestParam(value = "id") Long id);
}
